package com.atguigu.gulimail.auth.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimail.auth.vo.GiteeMemberVo;
import com.atguigu.gulimail.auth.vo.UserRegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author fangy
 * @date 2022-10-06 20:30
 */
@FeignClient("gulimail-member")
public interface MemberFeignService {

    @RequestMapping("/member/member/regist")
    R saveUer(@RequestBody UserRegistVo userRegistVo);


    @RequestMapping("/member/member/oauth2/login")
    R GiteeSaveOrRegit(@RequestBody GiteeMemberVo giteeMemberVo);

}
